package main

import "fmt"

func main() {
	// 1. for 循环
	for i := 0; i < 5; i++ {
		fmt.Println(i)
	}

	// 2. for-range 循环
	arr := [5]int{1, 2, 3, 4, 5}
	for i, v := range arr {
		fmt.Println(i, v)
	}

	// 3. 无限循环
	for {
		fmt.Println("无限循环")
		break
	}
}